using System;

namespace Beeflys
{
    sealed class ActorCallbackSponsor<TResponse> : ACallbackSponsor<TResponse>, IActorSponsor
    {
        public ActorCallbackSponsor(IActorRef actorRef, ResponseDelegate<TResponse> completed, TimeSpan timeout)
            : base(completed, timeout)
        {
            this.actorRef = actorRef;
        }

        private IActorRef actorRef;

        public bool IsActive => this.actorRef.IsActive;

        public ActorId Id => this.actorRef.Id;
    }
}

